﻿using UnityEngine;using System.Collections;public class SpawnPoint : MonoBehaviour {	void Start () 	{		if (GlobalManager.isAgent)		{			GameObject player = GameObject.FindGameObjectWithTag("Player");			if (player != null)			{				player.transform.position = this.transform.position;				player.transform.rotation = this.transform.rotation;			}		}		else		{			GameObject topDownCamera = GameObject.Find("Commander View Only/Topdown Camera");			if (topDownCamera != null)			{				topDownCamera.transform.position = new Vector3(this.transform.position.x, topDownCamera.transform.position.y, this.transform.position.z);			}		}	}}